# 类型存根文件 - 帮助IDE识别 elasticsearch_dsl 导入
from typing import Any, Dict, List, Optional, Union

class Document:
    """Elasticsearch DSL Document 基类"""
    def __init__(self, **kwargs: Any) -> None: ...

class Text:
    """Elasticsearch Text 字段类型"""
    def __init__(self, analyzer: Optional[str] = None, search_analyzer: Optional[str] = None, **kwargs: Any) -> None: ...

class Keyword:
    """Elasticsearch Keyword 字段类型"""
    def __init__(self, **kwargs: Any) -> None: ...

class Integer:
    """Elasticsearch Integer 字段类型"""
    def __init__(self, **kwargs: Any) -> None: ...

class Float:
    """Elasticsearch Float 字段类型"""
    def __init__(self, **kwargs: Any) -> None: ...

class Nested:
    """Elasticsearch Nested 字段类型"""
    def __init__(self, **kwargs: Any) -> None: ...

class Index:
    """Elasticsearch Index 类"""
    def __init__(self, name: str, **kwargs: Any) -> None: ...

class connections:
    """Elasticsearch 连接管理"""
    @staticmethod
    def create_connection(alias: str = "default", hosts: Union[str, List[str]] = None, **kwargs: Any) -> None: ...
